apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: t1
spec:
  group: test.group
  versions:
    - name: v2
      served: true
      schema:
        openAPIV3Schema:
          type: object
          description: (src) v2 - t1.test.group
          required:
            - p1-object
    - name: v1
      served: true
      schema:
        openAPIV3Schema:
          type: object
          description: (src) v1 - t1.test.group
          required:
            - p1-object
          properties:
            p1-object:
              type: object
              properties:
                p1-1-object:
                  type: object
                  description: (src) p1-1-object
                  properties:
                    p1-1-1-string:
                      type: string
                      description: (src) p1-1-1-string
                      pattern: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"
                    p1-1-2-string:
                      type: string
                      description: (src) p1-1-2-string
                      enum:
                        - aaa
                        - bbb
                    p1-1-3-array:
                      type: array
                      description: (src) p1-1-2-array
                      items:
                        properties:
                          p1-1-3-1-string:
                            type: string
                            description: (src) p1-1-3-1-string
                    only-in-src:
                      type: array
                      description: (src) only-in-src-array
                      items:
                        properties:
                          only-in-src-1-string:
                            type: string
                            description: (src) only-in-src-1-string
